<h5>Uploading a new program to the Wiring hardware</h5>
<h5>Step 1</h5>
<p>Make sure you have done successfully the Wiring hardware installation and <a href="../installingsoftware/index.html">software Install</a> process with special attention to steps 3 and 5, these steps might have to be repeated after changing the USB port used by the Wiring hardware or using a new board. </p>
<h5>Step 2</h5>
<p>Verify your program is free of compiling errors by pressing the Compile/Verify button in the menu bar.</p>
<p><img src="imgs/verify.jpg" alt="Verify the code"/></p>
<h5>Step 3</h5>
<p>Press the Upload button in the menu bar. In case of syntax errors the Wiring environment will print the error messages otherwise it will print the Upload was completed successfully, the uploading process triggers activity in the Rx/Tx LEDs on the Wiring hardware. The new program will start automatically after uploading.</p>
<p><img src="imgs/upload.jpg" alt="Program upload"/></p>
<p>That's all for uploading.</p>
<p>&nbsp;</p>
<p><strong>Note for boards distributed from 2004-2008</strong>:  boards previous to hardware revision 0004 require a <strong><em>manual RESET right before pressing the Upload button in the Wiring development environment</em></strong>. <em><strong>After the upload is complete another manual reset is required for the Wiring hardware to start executing the new program</strong></em>. The hardware revision is printed on the board under the Wiring logo. From hardware revision 0004 and newer boards the software upload and board restart is automatic when pressing the upload button in the Wiring environment. See the diagrams below.</p>
<p>Press the reset button in the Wiring hardware and immediately press the Upload button in the menu bar. If something goes wrong the Wiring environment will print an error message. If things are fine it will tell you the Upload was successful.</p>
<p><img src="imgs/boardreset.jpg" alt="Wiring hardware  reset" /></p>
<p><img src="imgs/upload.jpg" alt="Program upload"/></p>
<p>After a successful upload press the RESET button on the Wiring hardware to restart the new program uploaded. It takes from 5 to 7 seconds for your program to start after resetting the board. </p>
<p><img src="imgs/success.jpg" alt="Success uploading"/></p>
<p><img src="imgs/boardreset.jpg" alt="Board reset" /></p>
